n=3779; pencil=[|4218,8165| 644,1978| 3287,4641|];